package controller;

import java.io.IOException;

import javax.jms.JMSException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import consumer.ContentConsumer;

public class StartActiveMQService extends HttpServlet {
	public void doGet(HttpServletRequest request, HttpServletResponse response)
		throws IOException {
	
		ContentConsumer cc = new ContentConsumer();
		try {
			cc.getMessage();
			response.getWriter().println("Start service ActiveMQService!");
		} catch (JMSException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
}
